config.h.
* dispnew.c (init_display): Compare the return value of getenv to
zero before setting display_arg, instead of just using the pointer
as a truth value.
#include "xterm.h"
#endif /* HAVE_X_WINDOWS */
-extern char *getenv ();
-
#define max(a, b) ((a) > (b) ? (a) : (b))
#define min(a, b) ((a) < (b) ? (a) : (b))
if (! display_arg)
{
#ifdef VMS
- display_arg = getenv ("DECW$DISPLAY");
+ display_arg = (getenv ("DECW$DISPLAY") != 0);
#else
- display_arg = getenv ("DISPLAY");
+ display_arg = (getenv ("DISPLAY") != 0);
#endif
}